<link rel="import" href="../../bower_components/polymer/polymer-element.html">

<link rel="import" href="../../bower_components/iron-collapse/iron-collapse.html">
<link rel="import" href="../../bower_components/iron-icon/iron-icon.html">

<dom-module id="som-rev-range">
  <template>
    <style>
      .padding-right {
        padding-right: 0.5em;
      }
    </style>
    <div>
      <template is="dom-if" if="[[!_haveError(range)]]">
        <div class="title">
          Regression ranges:
        </div>
        <span class="padding-right">
          [[range.repo]]:
        </span>
        <a class="padding-right" target="_blank" href$="[[_regressionRangeLink(range)]]">[[_regressionRange(range)]]</a>
      </template>
    </div>
 </template>
  <script src="som-rev-range.js"></script>
</dom-module>
